home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / overview / tesample / aux / makefile next >
Encoding:
Makefile  |  2000-09-28  |  2.8 KB  |  83 lines

  1. #
  2. #    Apple Macintosh Developer Technical Support
  3. #
  4. #    MultiFinder-Aware Simple TextEdit Sample Application
  5. #
  6. #    TESample
  7. #
  8. #    CTESample.make    -    Make Source
  9. #
  10. #    Copyright ) 1989 Apple Computer, Inc.
  11. #    All rights reserved.
  12. #
  13. #    Versions:    
  14. #                1.00                08/88
  15. #                1.01                11/88
  16. #                1.02                04/89
  17. #                1.03                06/89
  18. #
  19. #    Components:
  20. #                TESample.p            June 1, 1989
  21. #                TESample.c            June 1, 1989
  22. #                TESampleGlue.a        June 1, 1989    -MPW only-
  23. #                TESample.r            June 1, 1989
  24. #                TESample.h            June 1, 1989
  25. #                PTESample.make        June 1, 1989    -MPW only-
  26. #                CTESample.make        June 1, 1989    -MPW only-
  27. #                TESampleGlue.s        June 1, 1989    -A/UX only-
  28. #                TESampleAUX.r        June 1, 1989    -A/UX only-
  29. #                Makefile            June 1, 1989    -A/UX only-
  30. #
  31. #    TESample is an example application that demonstrates how 
  32. #    to initialize the commonly used toolbox managers, operate 
  33. #    successfully under MultiFinder, handle desk accessories and 
  34. #    create, grow, and zoom windows. The fundamental TextEdit 
  35. #    toolbox calls and TextEdit autoscroll are demonstrated. It 
  36. #    also shows how to create and maintain scrollbar controls.
  37. #
  38. #    It does not by any means demonstrate all the techniques you 
  39. #    need for a large application. In particular, Sample does not 
  40. #    cover exception handling, multiple windows/documents, 
  41. #    sophisticated memory management, printing, or undo. All of 
  42. #    these are vital parts of a normal full-sized application.
  43. #
  44. #    This application is an example of the form of a Macintosh 
  45. #    application; it is NOT a template. It is NOT intended to be 
  46. #    used as a foundation for the next world-class, best-selling, 
  47. #    600K application. A stick figure drawing of the human body may 
  48. #    be a good example of the form for a painting, but that does not 
  49. #    mean it should be used as the basis for the next Mona Lisa.
  50. #
  51. #    We recommend that you review this program or Sample before 
  52. #    beginning a new application. Sample is a simple app. which doesn't 
  53. #    use TextEdit or the Control Manager.
  54. #
  55.  
  56. SHELL =        /bin/sh
  57. CFLAGS =    -I/usr/include/mac -B /usr/lib/big/
  58. REZ =        /mac/bin/rez -i /:mac:lib:rincludes -d AUX
  59.  
  60. # The next entry builds the "TESample" program.  Note that this application
  61. # consists of two files, "TESample" and "%TESample".  Both of these files
  62. # must reside in the same directory when TESample is run.  
  63.  
  64. TESample:    TESampleAUX.o TESampleInitAUX.o TESampleGlue.o %TESample
  65.         ld /usr/lib/maccrt0.o /lib/crt2.o -o TESample TESampleAUX.o \
  66.         TESampleInitAUX.o TESampleGlue.o /usr/lib/low.o \
  67.          -lmac_s -lat -lld -lmr -lc_s /lib/crtn.o /usr/lib/low.ld
  68.  
  69. TESampleAUX.o:    TESampleAUX.c
  70.         cc ${CFLAGS} -DAUX -c TESampleAUX.c
  71.  
  72. TESampleInitAUX.o:    TESampleInitAUX.c
  73.         cc ${CFLAGS} -DAUX -c TESampleInitAUX.c
  74.  
  75. TESampleGlue.o:    TESampleGlue.s
  76.         as -o TESampleGlue.o TESampleGlue.s
  77.  
  78. %TESample:    TESample.r
  79.         ${REZ} TESample.r
  80.         fcnvt -f -d Rez.out TESample.rsrc
  81.         mv %TESample.rsrc %TESample
  82.         rm -f Rez.out TESample.rsrc
  83.